.class Lcom/waiqin365/lightapp/syorder/product/v;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/v;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const/4 v5, 0x0

    const/4 v2, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/v;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;->dismissProgressDialog()V

    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/syorder/b/a/n;

    invoke-static {v0}, Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;->f(Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v3

    const-string/jumbo v4, ""

    invoke-virtual {v3, v4}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->a(Ljava/lang/String;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;->f(Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v3

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->d()V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/syorder/b/a/n;->b()Z

    move-result v3

    if-eqz v3, :cond_2

    const-string/jumbo v3, "1"

    iget-object v4, v1, Lcom/waiqin365/lightapp/syorder/b/a/n;->b:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    invoke-static {v0}, Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;->g(Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;)Lcom/waiqin365/lightapp/syorder/product/a/m;

    move-result-object v3

    if-nez v3, :cond_1

    invoke-static {v0, v2}, Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;->a(Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;Z)Z

    invoke-static {v0}, Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;->h(Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;)V

    :cond_1
    invoke-static {v0, v5}, Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;->a(Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;Z)Z

    iget-object v1, v1, Lcom/waiqin365/lightapp/syorder/b/a/n;->f:Ljava/util/List;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;->a(Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;Ljava/util/List;)V

    :try_start_0
    invoke-static {v0}, Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;->a(Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;)Lcom/waiqin365/lightapp/syorder/product/b/a;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/syorder/product/b/a;->d:Lcom/waiqin365/lightapp/syorder/product/b/b;

    iget-object v1, v1, Lcom/waiqin365/lightapp/syorder/product/b/b;->d:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    :goto_1
    invoke-static {v0}, Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;->a(Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;)Lcom/waiqin365/lightapp/syorder/product/b/a;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/product/b/a;->d:Lcom/waiqin365/lightapp/syorder/product/b/b;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    add-int/lit8 v1, v1, 0x1

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/syorder/product/b/b;->d:Ljava/lang/String;

    goto :goto_0

    :catch_0
    move-exception v1

    move v1, v2

    goto :goto_1

    :cond_2
    iget-object v1, v1, Lcom/waiqin365/lightapp/syorder/b/a/n;->c:Ljava/lang/String;

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    const-string/jumbo v1, "\u8fde\u63a5\u670d\u52a1\u5668\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5\uff01"

    :cond_3
    invoke-static {v0}, Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;->i(Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v3

    invoke-virtual {v3, v5}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;->i(Lcom/waiqin365/lightapp/syorder/product/SyProductSelectActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/view/NoNetView;->setMsg(Ljava/lang/String;Z)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x3f5
        :pswitch_0
    .end packed-switch
.end method
